<?php
/*
 * @Date: 2021-05-09 23:37:41
 * @Author: yukun
 * @LastEditors: yukun
 * @LastEditTime: 2021-05-09 23:46:26
 * @FilePath: /design-patterns-study/装饰器模式/Header.php
 * @Description: 本文件主要功能为：
 */

class Header extends Article
{
    public function __construct(Article $article)
    {
        $this->article = $article;
        $this->zhuangshi();
    }

    public function zhuangshi()
    {
        return $this->content = $this->article->content . PHP_EOL . '加个标题装饰一下';
    }
}
